<?php get_header(); ?>
<div id="left">
	<?php if (have_posts()) : ?>

		<?php while (have_posts()) : the_post(); ?>
<div class="post">
  <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  <div class="postmeta"><span class="date">Posted on <?php the_time('j F Y'); ?></span> <span class="author">By <?php the_author(); ?></span> </div>
  <?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php the_tags('<p>Tags: ', ', ', '</p>'); ?>
 <div class="postbottom"><a href="<?php the_permalink(); ?>">Permalink</a> <a href="<?php comments_link(); ?>"><?php comments_number(); ?></a> <?php the_category(', '); ?><?php edit_post_link('edit', ' | ', ''); ?></div>
  </div>
<?php comments_template(); ?>
<?php endwhile; ?>
  

<?php endif; ?>
</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>